<?php
// @filesource actorsSidebar_element.php
// 右栏排行榜?>
<!-- 男女歌手 -->
<?php if( !empty($femal) or !empty($male) ): ?>
<div id="rank-female">
<table width="276" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="29" background="images/tabbg2.gif">
		<table width="276" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td align="left"><img src="images/tab7a.gif" width="136" height="29" /></td>
				<td align="right"><img src="images/tab8b.gif" width="136" height="29" onmouseover="showHideLayers('rank-male','rank-female')" /></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<table width="276" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="1" height="172" bgcolor="#a5bfeb"></td>
		<td width="274" align="center" valign="top">
		<table width="80%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="7"></td>
			</tr>
		</table>
		<table width="249" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="32" height="20" align="center" bgcolor="#C2C2C2"
					class="white12">NO.</td>
				<td width="157" align="center" bgcolor="#C2C2C2" class="white12">昵称</td>
				<td width="60" align="center" bgcolor="#C2C2C2" class="white12">人气</td>
			</tr>
		</table>
		<div class="rankList">
			<!-- 女歌手  -->
			<?php $i= 1; 
			  foreach($female as $k=>$v ): ?>
			  <div class="rankRow">
			  	<div class="rankNo"><?php echo $i; ?></div>
			  	<div class="rankNick"><a href="<?php echo url('actors/info', array('uin' => $v['uin']) ); ?>"><?php echo $v['nick']; ?></a></div>
			  	<div class="rankVotes"><?php echo $v['votes']; ?></div>
			  </div>
			<?php $i++;
			endforeach; ?>
		</div>	
		</td>
		<td width="1" bgcolor="#a5bfeb"></td>
	</tr>
</table>
<table width="276" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="6" height="7"><img src="images/bl.gif" width="6" height="7" /></td>
		<td width="264" background="images/bbg.gif"><img src="images/bbg.gif"
			width="14" height="7" /></td>
		<td width="6" height="7"><img src="images/br.gif" width="6" height="7" /></td>
	</tr>
</table>
</div><!-- #rank-female -->
<div id="rank-male">
<table width="276" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="29" background="images/tabbg2.gif">
		<table width="276" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td align="left"><img src="images/tab7b.gif" width="136" height="29" onmouseover="showHideLayers('rank-female','rank-male')" /></td>
				<td align="right"><img src="images/tab8a.gif" width="136" height="29" /></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<table width="276" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="1" height="172" bgcolor="#a5bfeb"></td>
		<td width="274" align="center" valign="top">
		<table width="80%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="7"></td>
			</tr>
		</table>
		<table width="249" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="32" height="20" align="center" bgcolor="#C2C2C2"
					class="white12">NO.</td>
				<td width="157" align="center" bgcolor="#C2C2C2" class="white12">昵称</td>
				<td width="60" align="center" bgcolor="#C2C2C2" class="white12">人气</td>
			</tr>
		</table>
		<div class="rankList">
			<!-- 男歌手  -->
			<?php $i= 1; 
			  foreach($male as $k=>$v ): ?>
			  <div class="rankRow">
			  	<div class="rankNo"><?php echo $i; ?></div>
			  	<div class="rankNick"><a href="<?php echo url('actors/info', array('uin' => $v['uin']) ); ?>"><?php echo $v['nick']; ?></a></div>
			  	<div class="rankVotes"><?php echo $v['votes']; ?></div>
			  </div>
			<?php $i++;
			endforeach; ?>
		</div>	
		</td>
		<td width="1" bgcolor="#a5bfeb"></td>
	</tr>
</table>
<table width="276" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="6" height="7"><img src="images/bl.gif" width="6" height="7" /></td>
		<td width="264" background="images/bbg.gif"><img src="images/bbg.gif"
			width="14" height="7" /></td>
		<td width="6" height="7"><img src="images/br.gif" width="6" height="7" /></td>
	</tr>
</table>
</div><!-- #rank-male -->
<script type="text/javascript">
document.getElementById('rank-male').style.display = 'none';
function showHideLayers(showID, hideID){
	//alert( showID + ' - ' + hideID );
	var show = document.getElementById(showID);
	var hide = document.getElementById(hideID);
	hide.style.display = 'none';
	show.style.display = '';
}
</script>
<?php //男女歌手
 endif; ?>
<table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td height="7"></td></tr></table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><a href="<?php echo $actorReg; ?>"><img src="images/wyqy.gif" width="276" height="80" border="0" /></a></td>
        </tr>
      </table>
<table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td height="7"></td></tr></table>
<?php if( !empty($newbie) ): ?>
<!-- 新人新秀  -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" height="29"><img src="images/topl.gif" width="6" height="29" /></td>
          <td align="center" background="images/topb.gif"><table width="96%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left"><span class="blue14">新人新秀</span></td>
                <td align="right"><a href="<?php echo url('actors/newbie'); ?>"><img src="images/more.gif" width="37" height="11" border="0" /></a></td>
              </tr>
          </table></td>
          <td width="6" height="29"><img src="images/topr.gif" width="6" height="29" /></td>
        </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="1" height="145" bgcolor="#a5bfeb"></td>
          <td align="center" valign="middle"><table width="80%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="7"></td>
            </tr>
          </table>
            <table width="249" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="32" height="20" align="center" bgcolor="#C2C2C2" class="white12">NO.</td>
                <td width="157" align="center" bgcolor="#C2C2C2" class="white12">昵称</td>
                <td width="60" align="center" bgcolor="#C2C2C2" class="white12">人气</td>
              </tr>
            </table>
           <div class="rankList">
			<!-- 新人新秀  -->
			<?php $i= 1; 
			  foreach($newbie as $k=>$v ): ?>
			  <div class="rankRow">
			  	<div class="rankNo"><?php echo $i; ?></div>
			  	<div class="rankNick"><a href="<?php echo url('actors/info', array('uin' => $v['uin']) ); ?>"><?php echo $v['nick']; ?></a></div>
			  	<div class="rankVotes"><?php echo $v['votes']; ?></div>
			  </div>
			<?php $i++;
			endforeach; ?>
		</div>	</td>
          <td width="1" bgcolor="#a5bfeb"></td>
        </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" height="7"><img src="images/bl.gif" width="6" height="7" /></td>
          <td width="264" background="images/bbg.gif"><img src="images/bbg.gif" width="14" height="7" /></td>
          <td width="6" height="7"><img src="images/br.gif" width="6" height="7" /></td>
        </tr>
      </table>     
<?php //新人新秀
  endif; ?>
<table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td height="7"></td></tr></table>
<?php if( !empty($live) ):  ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" height="29"><img src="images/topl.gif" width="6" height="29" /></td>
          <td align="center" background="images/topb.gif"><table width="96%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left"><span class="blue14">活跃榜</span></td>
                <td align="right"><a href="<?php echo url('actors/live'); ?>"><img src="images/more.gif" width="37" height="11" border="0" /></a></td>
              </tr>
          </table></td>
          <td width="6" height="29"><img src="images/topr.gif" width="6" height="29" /></td>
        </tr>
</table>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="1" height="145" bgcolor="#a5bfeb"></td>
          <td align="center" valign="middle"><table width="80%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="7"></td>
            </tr>
          </table>
            <table width="249" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="32" height="20" align="center" bgcolor="#C2C2C2" class="white12">NO.</td>
                <td width="157" align="center" bgcolor="#C2C2C2" class="white12">昵称</td>
                <td width="60" align="center" bgcolor="#C2C2C2" class="white12">人气</td>
              </tr>
            </table>
           <div class="rankList">
			<!-- 活跃榜  -->
			<?php $i= 1; 
			  foreach($live as $k=>$v ): ?>
			  <div class="rankRow">
			  	<div class="rankNo"><?php echo $i; ?></div>
			  	<div class="rankNick"><a href="<?php echo url('actors/info', array('uin' => $v['uin']) ); ?>"><?php echo $v['nick']; ?></a></div>
			  	<div class="rankVotes"><?php echo $v['votes']; ?></div>
			  </div>
			<?php $i++;
			endforeach; ?>
		</div>
           </td>
          <td width="1" bgcolor="#a5bfeb"></td>
        </tr>
      </table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="6" height="7"><img src="images/bl.gif" width="6" height="7" /></td>
          <td width="264" background="images/bbg.gif"><img src="images/bbg.gif" width="14" height="7" /></td>
          <td width="6" height="7"><img src="images/br.gif" width="6" height="7" /></td>
        </tr>
      </table> 
<?php //活跃榜
  endif; ?>
